﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Core.Core;
using Core.Modal;

namespace www.pages.project
{
    public partial class _new : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack) {
                hid_project.Value = Request["project"]??"0";
                BindData();
            }
        }

        private void BindData() {
            var project = ProjectUtil.Get(Convert.ToInt32(hid_project.Value));
            this.txt_name.Value = project?.project_name;
            this.txt_comment.Value = project?.project_comment;
        }
    }
}